Repository navigation
Prefs: one policy note, a read-only Services card, and UAC at save time instead of Unlock - #66
Merged
Merged
Conversation
Drop the per-field "Managed by Policy" captions: fields set by policy stay disabled and gray, and a single line at the top of the tab says so when any value comes from the policy key. Add a Services card listing what the installer registers (the daily self-heal scheduled task) with its state, last result and schedule in plain words, queried through the Task Scheduler without elevation. Lay the Prefs cards out on an even two-column grid with Services spanning both columns.
…time Every setting policy does not manage is editable in the normal app. Edits stay pending behind Save and Discard; Save writes directly when elevated, otherwise it raises UAC and runs the app's own executable headless with --apply-settings and a temp JSON file. That writer re-reads policy, skips every managed key, validates the values and exits without a window. A declined prompt keeps the edits pending and says so. Removes the Unlock banner, the whole-app elevated relaunch and the --prefs switch it used.
The values can include a credential header, so they no longer go through a temp file. The GUI creates a one-instance pipe with a random name that only the current user, Administrators and SYSTEM can open, passes the name to the elevated --apply-settings process and writes the JSON when it connects. Both sides time out after 60 seconds, which covers the UAC prompt, and a declined prompt still leaves the edits pending.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #65
Policy note and Services card
HasPolicySettings).BootstrapMate Self-Heal, and no services. The card shows its state, last run result and schedule in plain words, read through the Task Scheduler COM API off the UI thread; access denied shows "Unknown", a missing task shows "Not installed".BootstrapMate.Core/InstallFootprint.cs, with unit tests for start type, task state, result code and trigger XML wording.No Unlock mode
--prefsswitch. Editability depends on policy alone (PrefsPolicy.CanEdit).runasand--apply-settings <pipe>, then sends the values as JSON over a one-instance named pipe with a random name whose ACL admits only the current user, Administrators and SYSTEM (so over-the-shoulder admin elevation works). Nothing touches disk. Both sides time out after 60 s.Program.csnow ownsMain(DISABLE_XAML_GENERATED_MAIN) so that writer runs headless and exits 0/non-zero before any window exists. It re-reads policy, skips every managed key, and validates the timeout range.PrefsSettingsWriterTests).Risk: medium